package com.dayfly.tip.dao;

import com.dayfly.tip.model.WeiboToken;

public interface WeiboDAO {

	/**
	 * 保存微博
	 * 
	 * @param tokenKey
	 * @param tokenSecret
	 * @param type
	 * @param userId
	 * @return
	 */
	public boolean saveWeiboToken(WeiboToken token);
	
	/**
	 * 根据用户id得到其对应的token
	 * 
	 * @param userId
	 * @return
	 */
	public WeiboToken getWeiboTokenByUserId(long userId,int type);

}
